package com.findyou.service;

import com.findyou.entity.User;

import java.sql.SQLException;
import java.util.List;

/**
 * @Title: UserService
 * @Author 贾金博
 * @Package com.findyou.service
 * @Date 2024/11/15 上午9:24
 * @description: 接口
 */
public interface UserService {
    // 根据id查询用户信息
    User findUserById(int id) throws SQLException;

    // 查询所有的用户信息
    List<User> findAllUsers() throws SQLException;

    // 添加用户
    void insertUser(User user) throws SQLException;

    // 根据id删除用户
    void deleteUser(int id) throws SQLException;

    // 更新用户信息
    void updateUser(User user) throws SQLException;
}
